package chapter02
import scala.collection.mutable
object Test28_Map2 {
  def main(args: Array[String]): Unit = {
    //可变的map 无序的键值对
    val map = mutable.Map("a" -> 10, "b" -> 15, "c" -> 20)
    //增加元素
    map.put("d",25)
    println(map)
    //删除元素
    map.remove("c")
    println(map)
    //修改元素
    map.update("a",100)
    println(map)
    map.update("c",105)
    println(map)
  }
}
